#!/usr/bin/python
#-*-coding: utf-8 -*-

u"""
:name: empty
:author: ANONYMOUS
:license: UNKNOWN
"""
__all__ = [u'HandlerPart']

########## DO NOT CHANGE THESE LINES ###########################################
import sys
from pylot.core import (ENCODING, Path)
try : __file__
except NameError : co = sys._getframe(0).f_code ; __file__ = co.co_filename
ufile = __file__.decode(ENCODING)
if ufile.strip() : PLUGIN_PATH = Path(ufile).abspath().parent
else : PLUGIN_PATH = Path(u'.').abspath()
########## DO NOT CHANGE THESE LINES ###########################################

from pylot.core import (check_type, ENCODING, Path, hardbook)
from pylot.interfaces import (HandlerInterface)

class HandlerPart (HandlerInterface):
  def __init__ (self, plugin_path=None, plugin_id=None):
    if plugin_path is None : plugin_path = PLUGIN_PATH
    HandlerInterface.__init__(self, plugin_path, plugin_id)

  def _translate(self):
    # translate attributes for example
    pass

  def _readSettings(self, settings, common):
    pass

  def _writeSettings(self, settings, common):
    pass

  def _quit(self):
    pass

  def writeInfoPathBook(self):
    self.io.writeStdout(hardbook.infos + '\n')

if __name__ == '__main__':
  u"""
  Example of script
  """
  handler = HandlerPart()
  handler.init()
  handler.example_method()
